package org.example.kdxf.demos.service.Impl;

import org.example.kdxf.demos.entity.User;
import org.example.kdxf.demos.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public User testThree(Integer num) {
        if(num==1){
            User user=new User();
            user.setId(1L);
            user.setUsername("艾明依");
            return user;
        }
        if(num==2){
            User user=new User();
            user.setId(2L);
            user.setUsername("任媛媛");
            return user;
        }

        return null;
    }
}
